

#ifndef _SHELL_RESOFFLINERESULT_MESSAGE_H_
#define _SHELL_RESOFFLINERESULT_MESSAGE_H_

#include "Message.h"
#include "Beans.h"
//#include "FigtEquip.h"
//#include <vector>
//#include "FightGoods.h"
using namespace std;

class ResOffLineResultMessage : public Message
{
	public:
	ResOffLineResultMessage();
	~ResOffLineResultMessage();
	void reset();
	ResOffLineResultMessage* clone();
	static const int _ID;
	//战斗的地图id
	int32 mapId;
	//挂机时间
	int32 fightTime;
	//战斗结果类型0:离线,1:快速战斗
	int8 type;
	//总次数
	int16 fightSumNum;
	//胜利次数
	int16 victorNum;
	//失败次数次数
	int16 failureNum;
	//经验
	int32 exp;
	//银币
	int32 money;
	//真气
	int32 zhenqi;
	//出售获得银币
	int32 sellMoney;
	//战斗获得物品
	vector<FightGoods*> fightGoods;
	//获得装备统计
	vector<FigtEquip*> figtEquip;
	
	bool read_from(ByteBuf& buf);
    bool write_to(ByteBuf& buf);
    int getId();
};

#endif
